<div id="currentSurvey">
	<? 
	if (!$UserVoted){
		echo $NoSurveyOpened ? '<div id="resultTag">Resultados</div><br />' : '';?>
		<div id="surveyDescription" class="question"><?= utf8_decode($Survey->getDescription()); ?></div>
		<div id="surveyOptions" class="options">
			<?
			$counter = 0;
			foreach ($Survey->getOptions() as $Option){
				if (!$NoSurveyOpened){
			?>
					<input type="radio" id="surveyOption" value="<?= $Option->id; ?>" name="survey" <?= $counter == 0 ? 'checked="checked"' : '' ?> />
			<?
				}
				echo $Option->description . '<br />';
				if ($NoSurveyOpened){
					$Percent = ($Survey->getTotalVotes() > 0) ?  $Option->Total*100/$Survey->getTotalVotes() : 0;
			?>
					<div class="totalVotes inlineBlock" style="width:' <?= $Percent; ?> '%;"></div><?= $Percent; ?>%
					<br />
					<br />';
			<?
				}
				$counter++;
			}
			?>
		</div>
		<?
		if (!$NoSurveyOpened){
		?>
			<input type="button" value="Enviar" id="surveyVote" />
		<?
		}
	}else{
	?>
		<div style="min-height:203px;"><?=$messages->getMessage("UserHasVoted");?></div>
	<?
	}
	?>
</div>